﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Admin.master" AutoEventWireup="true"
    CodeFile="add-marketplace.aspx.cs" Inherits="Admin_MarketPlace_add_marketplace" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="../../Javascripts/Common/DatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MiddleArea" runat="Server">
    <div>
        <div>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                DisplayMode="List" ShowMessageBox="true"  ShowSummary="false" 
                EnableClientScript="true" HeaderText="Following fields are required" />
        </div>
        <div>
            <table cellpadding="0" cellspacing="4" border="0" width="80%">
            <tr>
                <td colspan="4" class="heading-text">
                    Add MarketPlace
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage>
                </td>
            </tr>
            <tr>
                <td colspan="4" align="left" valign="top">
                    <asp:Button ID="imbSave" runat="server" Text="Save" CssClass="button" OnClick="imbSave_Click" />
                   
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>Title</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtTitle" runat="server" Width="150px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="rfvTitle" ControlToValidate="txtTitle" Display="None" runat="server" ErrorMessage="Title"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>User ID</b>
                </td>
                <td align="left" valign="top" colspan="3">
                  <asp:TextBox ID="txtUserID" runat="server" Width="150px"></asp:TextBox><asp:RequiredFieldValidator
                        ID="rfvtxtUserID" ControlToValidate="txtUserID" Display="None" runat="server" ErrorMessage="UserID"></asp:RequiredFieldValidator>
                </td>
            </tr>
         
            <tr>
                <td align="left" valign="top">
                    <b>Date</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:TextBox ID="txtDate" runat="server" Width="150px" onkeypress="return false;"
                        BackColor="#E0E0E0"></asp:TextBox>
                    <a href="#" onclick="displayDatePicker('<%= txtDate.ClientID.Replace("_", "$")%>'); return false;">
                        <img alt="" style="border: 0px none;" src='<%= Page.ResolveUrl("~/App_Themes/AdminDefault/image/Calendar.png") %>'
                            id="imgFromDate"  />
                    </a><a href="" onclick="javascript:document.getElementById('<%=txtDate.ClientID  %>').value='';return false; ">
                        Clear</a>
                    <asp:RequiredFieldValidator ID="rfvDate" ControlToValidate="txtDate" Display="None" runat="server" ErrorMessage="Date"></asp:RequiredFieldValidator>   
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>ShowContactInfo</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:CheckBox ID="chkShowContactInfo" runat="server" />
                </td>
                
            </tr>
            <tr>
            <td align="left" valign="top">
                    <b>Active</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <asp:CheckBox ID="chkActive" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                Contact Info
                </td>
                <td colspan="3">
                
                  <asp:TextBox ID="txtContactInfo" runat="server" Width="350px"  TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
               <tr>
                <td align="left" valign="top">
                    <b>Content</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <div>
                        <FCKeditorV2:FCKeditor ID="fckContent" runat="server" Width="600px" Height="500px"
                            Debug="false">
                        </FCKeditorV2:FCKeditor>
                        &nbsp;</div>
                    <asp:RequiredFieldValidator ID="rfvfckContent" ControlToValidate="fckContent" Display="None" runat="server" ErrorMessage="Content"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    <b>Admin Comment</b>
                </td>
                <td align="left" valign="top" colspan="3">
                    <div>
                        <FCKeditorV2:FCKeditor ID="fckAdminComment" runat="server" Width="600px" Height="500px"
                            Debug="false">
                        </FCKeditorV2:FCKeditor>
                        &nbsp;</div>
                </td>
            </tr>
        </table>
        </div>
    </div>
</asp:Content>
